package com.zs.netlibrary;

import android.app.Application;
import android.content.Context;

/**
 * Created by Administrator on 2017/8/18.
 */

public class NetApplication{
    private Context netContext;

    private static NetApplication instance;

    private NetApplication(){

    }

    public static NetApplication getInstance(){
        if (instance == null){
            synchronized (NetApplication.class){
                if(instance == null){
                    instance = new NetApplication();
                }
            }
        }

        return instance;
    }

    public Context getNetContext() {
        return netContext;
    }

    public void setNetContext(Context netContext) {
        this.netContext = netContext;
    }
}
